<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/27 0027
 * Time: 15:24
 */

namespace app\admin\validate;


use think\Validate;

class User extends Validate
{
    protected $rule = [
        'data'      =>  '',
        'uid'       =>  'require|integer'
    ];

    protected $message = [
        'uid.require'   =>  '请选择用户',
        'uid.integer'   =>  '请请选择正确的用户',
    ];

    protected $scene = [
        'userlist'      =>  ['data'],
        'userdetail'    =>  ['uid'],
      	'userset'		=>  ['data'],
		'zhuxiao'		=>  ['uid'],
    ];
}